home *** CD-ROM | disk | FTP | other *** search
/ Mastering Computers 3 / Mastering Computers Vol 3.iso / Win95 / Fun&Utils / MFCMSG.EXE / DLGCOMBO.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-01  |  578 b   |  26 lines

  1. #include "stdafx.h"
  2. #include "cmdlearn.h"
  3. #include "dlgcombo.h"
  4.  
  5. CComboDialog::CComboDialog(CWnd* pParent /*=NULL*/)
  6.    : CDialog(IDD_COMBOCOMBO, pParent)
  7. {
  8. }
  9.  
  10. //////////////////
  11. // Initialize the dialog: subclass the combo box.
  12. //
  13. BOOL CComboDialog::OnInitDialog() 
  14. {
  15.    CDialog::OnInitDialog();
  16.    if (!m_combo.SubclassControls(this, IDC_COMBOCOMBO, IDC_ADD, IDC_DELETE))
  17.       TRACE("Failed to subclass combo box.\n");
  18.    return TRUE;
  19. }
  20.  
  21. BEGIN_MESSAGE_MAP(CComboDialog, CDialog)
  22.    //{{AFX_MSG_MAP(CComboDialog)
  23.    //}}AFX_MSG_MAP
  24. END_MESSAGE_MAP()
  25.  
  26.